package com.gms.service.equipmanager;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gms.entity.equipment.Equipment;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jianghai
 * @since 2021-06-14
 */

@Service
public interface EquipmentService extends IService<Equipment> {

    public void addEquipment(Equipment equipment);

    public void delEquipment(Integer eId);

    public void alterEquipment(Equipment equipment);

    public List<Equipment> queryEquipment();    //查询所有存在的器材

    public Equipment queryById(Integer eId);

    public Page<Equipment> select_page(Integer pagenum);

    public Page<Equipment> select_page(Integer pagenum, Integer size);

    public Equipment queryByName(String etypename);

    public Page<Equipment> query_equip(String etypename, Integer eTypeId, Integer pageNum);
}
